Fix typo in comment
Drop unnecessary encoding argument
Preserve alphabetical sort order for options