fix(controller+client): utf-8 encode only string types
chore(utils): move encode to api/utils module
tests(controller): add api test for integer serialization/deserialization
fix(client): fix syntax error in config:list
fix(client): also encode keys which could be int
Merge pull request #1871 from gabrtv/fix-config-ints

Fix integer handling when encoding configuration