encode escaped alert