Improved easy-to-use filtering (possibly including autofiltering of potentially illegal content) in clients would go a long way toward solving that. It could be decided during initial set up. Also, relay operators could be on the hook for such content. Hopefully the developers of relay software are already working on moderation tools.