* fix: encode filename when using url prefix for resources * fix: only encode the last parts of filename * fix: encode all parts in filepath