Fixed major bug in decoding strings.