Added support for query strings with utf-8 characters
Fixed bug with filenames with multiple dots lost part of filename