Use to_s instead of strip for accept header.