Files with spaces....

Ok, I have this script that will look for files with the .pl4 extension and rename them with the modification date... But it breaks when the file has a space in it... (files are on windows machine) ive been trying to fix it but no luck.... Any help is greatly appriciated..

#! /bin/sh
for file in $(find -name '*.pl4'); do dd=`stat -c %y "$file"`; dd=${dd:0:10}; echo $(basename $file); cp "$file" "../pathloss/$dd-$(basename "$file")"; done

Well i got a somewhat fix if anyone comes along a similar problem

IFS=$'\n'

in the begining of file to change the delimiters