aws/aws-cli — pull request #777 by jamesls (2014-05-14 21:59:50+00:00)
Title: Fix issue #765 with non ascii characters in user-data

Read in the file:// contents as text, which is decoded via
locale.getpreferredencoding().

This introduces a py2/py3 compat_open so that you can open
a file with a encoding argument (not availble in py2's open()).

cc @danielgtaylor