Fix handling of special characters in option values to avoid collision.

For example, in my select box values I had both 'C++' and 'C#' as
skill sets and they both were mapping to C_ for generated elementID.
The fix replaces each special character by '_x' + hex-value.
e.g. 'C++' is replaced by 'C_x2b_x2b'