Fix encoding of data sent to submit_sm.
Merge branch 'develop' into feature/issue-535-fix-inconsistent-encoding-in-submit-sm-calls
Merge branch 'feature/issue-535-fix-inconsistent-encoding-in-submit-sm-calls' into develop