Trailing whitespace must be removed when generating the signature and must not be included in output.