Decode the arguments coming from the command line (and assume they're utf8)
Fixed tests on windows