iOS: fix issue with ruby application in case of using file:// prefix in URL