added newline at end of file
improved management of charset and missing Date header.