Issues/154 sanitize api payload

New sanitize_text method to the API wrapper. Resolves HTMLEntities (otherwise they end up being encoded a second time on receipt) and transcodes user input into valid US-ASCII ready for transit.

Closes #154