Fix payload hash: Remove parameters and leading/trailing whitespace from content-type