made strings safer for javascript