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