Add tests for UTF-8 encode. Add some more documentation in the README.