attempt to fix corrupted cookie header