Using 'tidy' was a kludge. Using encode/decode UTF-8 instead.