Avoid UnicodeDecodeError exception when passing module args