#287 fix encoding problem of loginController