Bug fixes

1.) Corrected a bug where certain AIML categories that contain Unicode
characters were being rejected
2.) (not really a bug) Streamlined the SQL query to eliminate extra
elements that aren't necessary in most situations