Api4

Get dougw some test code to help with bug.
default value of encoding is already utf-8