Add non-utf8 support to glob