Renamed "dump" functions to "encode" instead.