Ensure StompEncoder never writes content-length twice

Issue: SPR-11984