Inverted order of arguments being passed to encodeString/encodeJsonObject