Handle non-UTF-8 file uploads