correctly parse large http headers