fixed encoding of underscores

Thanks to Jesse Crews for mailing me a fix 7 years later.