Fixed deliver function for messages containing single quotes

The built in format methods don't appear to work with single quotes in
json strings.  I had to manually `.replace` them in order to get it
working.  Appears to function just fine in testing.