Make chan-getting regex for hooks RFC-compliant