Allow unicode arguments to passwd_check on Python 2

Closes gh-4524