quvi/util: Add escape_magic function

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>