Output HTTP Date header in case the app doesn't already do that. Fixes issue #485.
Fix a potential memory corruption caused by appending a string to itself.