added rnmrtk encoding support