fix menu editing with escaped characters