support `file:` protocol.
fixes bug on android 3.0.