Renamed TextEncoder->TextConverter. Added tests for TextConverter