cast argv to unicode before testing

otherwise the use of `unicode-literals` causes errors when there are non-ascii characters on argv on Python 2.