Fix escaping fenced code block with safe mode

Fix for correct rendering fenced code blocks if safe mode is active.