Coerce potential int in createKey/createApi to string.
Tests and code for escaping and the "all" scenario.