fix signature generating with spaces in the messages