Ensures that categories are Strings before escaping. Fixes #759.
Added test for all-String categories.
Merge pull request #767 from mojombo/string-categories

Force Categories to be Strings
Update history to reflect merge of #767.