Implement nqp::setencoding