sanitize class & category url fixed. fixes #9. props jb510.