fix read stdin bug of slugify.py