Simple class to encode strings