Better filename encoding support for Macos (I hope)