Fixes to UTF-8 handling in file paths