Fix some minor style issues with encode module.