Ok. Just tried out all the encoding's (Encoding.name_list) in MRI with the implemented spec example, seems like some of the encoding give ArgumentError exception, some give Incompatible encoding exception and some just work even with a invalid encoding.