Government pledges swift action on online safety