The JSON specs are relatively flexible and allow us to use one function to print strings, be they ascii, bytes or utf-8 encoded.
Also add start of ujson module with dumps implemented. Enabled in unix and stmhal ports. Test passes on both.