Fixes bug in converting windows filepath