fixed reset password fail error. close #287
fixed ruby 1.9.3 encode error.
Merge pull request #309 from saberma/saberma-bug/287-reset-password-fail

修正申请注册时重置密码失败的问题