Invalid URI: Invalid port number - Loading Local File

So, I am loading textures in from a folder in the root directory of my project. I can get the file paths just fine, but when I feed the paths from an array I get an error of ‘UriFormatException: Invalid URI: Invalid port number’. This code was working up until I upgraded to 2017.1 today. I searched on the net but couldn’t find a solution. Is there a new way to get local files?
Here’s my code.

public IEnumerator<WWW> GetSkins()
    {
        string[] skinFilePaths = Directory.GetFiles(skinsPath + "/", "*.png");
        for (int i = 0; i < skinFilePaths.Length; i++)
        {
            Debug.Log(skinFilePaths*);*

string url = “file:///” + skinFilePaths*;*
WWW diskSkinDir = new WWW(url);
string skinFileName = Path.GetFileName(skinFilePaths*);*
skinFileNames.Add(skinFileName);
// Wait for file to finish loading
while (!diskSkinDir.isDone)
{
yield return diskSkinDir;
}
if (diskSkinDir.isDone)
{
allSkins.Add(diskSkinDir.texture);
}
}
Debug.Log(allSkins.Count);
}
_*It does the same thing doing it this way too. https://docs.unity3d.com/ScriptReference/WWW.LoadImageIntoTexture.html*_

if it has worked before it was most likely a bug. The [file URI scheme][1] uses forward slashes since it’s an URI and not a file path. You should replace the backslashes with forward slashes.

Try this:

string url = "file:///" + skinFilePaths*.Replace("\\", "/");*

[1]: file URI scheme - Wikipedia