Test that setRequestHeader properly checks for invalid characters in header values.