fix arg parsing on 2.7
fix typo

note: never trust osx encoding