Mod file encoding