fix service gateway inability to handle dicts, add unicode test
Merge pull request #823 from pkediyal/COI-655-F

fix service gateway inability to handle dicts, add unicode test