AMBARI-581. Strip carriage-return related control-chars from hosts files (Contributed by Jaimin Jetly)