convert error messages from unicode to str