change PWP::Encoding to PWP::SingleEncoding