Add utils.sanitize_resource_id
Return empty string from `utils.ensure_string` when passed an object
Ensure window._debugger_io exists