python encoding, file path util