Remove hSetEncoding, print errors.