Replace characters that shouldn't be in HTML element ids