Fixed file upload encoding issue