fixed uploading file with bogus characters