Fix UnicodeDecodeError when replace interpreter in non-ascii file

I got this error, when using locale_gen module and set interpreter to "/usr/bin/python2" . I'm not quite sure whether assuming unicode is the best solution, but as far as I see at least modules from ansible itself all use utf-8.