Fix file:// support with font loading

Fixes regression in c7a27bf #94 since cc209e7 #49.