Convert dynd string encode/decode errors to unicode exceptions