menu: improve slug generation in Menu#add()

This allows the use of html as text argument in Menu#add().