Added in decoding logic so encoded strings and unicode both output properly