Strip carriage return from hostname during parsing