fix error when using a string as payload and jwt type in the header