sanitize_id function

Encodes ids to be used in JavaScript and Shiny