Added utf8 encoding for filename stuff.