fix: use dict directly rather than string template, as this caused encoding issues
The way this was originally implemented wasn't great. It turned a dict into a string template, then did string replacement, then turned back into a dict. When a string contained quotes or special chars, this went wrong. Best just to use a dict throughout, until we need to turn into JSON, then any encoding is handled automatically.
Closes #6 (closed)
Edited by Roy Harrington