prevent bad headers with empty strings being set