Add Parser.encodeValue() and .decodeValue() as encoded values are not always strings