Add character encoding to file like this: # -*- coding: latin-1 -*- Thanks to eago for the bug report.