Improved handling of id's for tabs, e.g. for special symbols which where
not legal js/html chars