These two macros were improperly expanding the parameters as well as
defining the operation, leading to compile errors.
#define NATIVE_TO_LATIN1(ch) PL_e2a[(U8)(ch)]
#define LATIN1_TO_NATIVE(ch) PL_a2e[(U8)(ch)]
-#define NATIVE_UTF8_TO_I8(ch) (ch) PL_e2utf[(U8)(ch)]
-#define I8_TO_NATIVE_UTF8(ch) (ch) PL_utf2e[(U8)(ch)]
+#define NATIVE_UTF8_TO_I8(ch) PL_e2utf[(U8)(ch)]
+#define I8_TO_NATIVE_UTF8(ch) PL_utf2e[(U8)(ch)]
/* Transforms in wide UV chars */
#define NATIVE_TO_UNI(ch) (((ch) > 255) ? (ch) : NATIVE_TO_LATIN1(ch))