HADOOP-11165. TestUTF8 fails when run against java 8. Contributed by Stephen Chu.