Fix for handling filenames with diacritics

Server should respond file names with the same encoding as original web page, UTF-8. Otherwise diacritics in file names would look corrupted. Sample file name to reproduce the issue: "Złote góry Żerania.png" becomes "ZĹ‚ote gĂłry Ĺ»erania.png".