Adds UTF-8 encoding to the EGM format.