Added transcoder support for string & raw records. Refactored.