Fix 'referenced before assignment' error in submit
Prevent various unicode errors.
Merge branch 'master' of github.com:AVBelyy/TSWeb