add url encoding to category bean