Added UTF-8 proofing to decoding strings.