Properly strip slugs and ensure they have no newlines [story:47838049]