Fixed issue that relates to filePath in windows by introducing a byte array