HADOOP-11389. Clean up byte to string encoding issues in hadoop-common. Contributed by Haohui Mai.