Support data: and file:/// urls.

Signed-off-by: Robin H. Johnson <robbat2@orbis-terrarum.net>