add nonascii support for file upload