So we need to strip \r, \n already gets taken care of by the whole pipe. Also limit to first location header just in case.