Fix escaping fenced code block with safe mode

Details is in issue #161.