EncodingType simplification in PHP5.3