Reworked the way we are converting the date objects to strings so we can avoid a JSLint build error.
We are now careful not to overwrite the content type header if it has already been set when replaying requests.