Strip invalid UTF-8 bytes in User#find_by_login (#16107).

git-svn-id: http://svn.redmine.org/redmine/trunk@12916 e93f8b46-1217-0410-a6f0-8f06a7374b81