* Fix Unicode problems with file upload
* Fix file uploading error check

Signed-off-by: RxCompile <rxcompile@gmail.com>