String encoding or other small task are repeated in multiple codecs and should be exported as utility methods and usable by all.