Add encodeURIComponent

String to create the slug is not encoded, causing the slug generation in panel to break as soon as there is an ampersand.