HBASE-9154. [0.92] Backport HBASE-8207 Replication could have data loss when machine name contains hyphen - (Jeffrey)

git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/0.92@1511424 13f79535-47bb-0310-9956-ffa450edef68