Social media regulation threatens rights, UN warns