allowing control characters (quotes) for the attribute names

fixes the issue of an invalid JSON response mentioned in #3, (replacing a pull request #17 with squashed commits).