Use
URI::Escape, the
uri_unescape function will do what you want with spaces and any other URI escapes that work their way into the file name.
Simple Example
use URI::Escape;
my $filename = uri_unescape('This%20is%20%an%20example.txt');
grep
|
Mynd you, mønk bites Kan be pretti nasti... |