fixed slugify, handle non-string arguments