HDFS-4651: add TestLayoutVersion
HDFS-4651: inline charset constant and remove Guava dependency