Avoid Unicode encoding errors on headers