Refactoring: extracted constant DEFAULT_HOST_NAME_ENCODING.