Force the character encoding to UTF-8 when compiling and running tests.

Avoids failures due to locale settings on the machine running the tests.