Proper encoding of non-ASCII characters in filenames when using responsive or hiDPI images (thanks @testsiteoop)

Signed-off-by: Bjørn Johansen <post@bjornjohansen.no>