Unicode fix

Forces proper encoding of the data, and fixes unicode issues on path building