Use a better character escape method