Fix: Trim leading/trailing whitespace and parameters from Content-Type for payload hash