remove overloaded encode*, which is considered unsafe.