Add UTF-8 support to slug function. Fixes #297