NXP-14342: do not try to encode filename in URL if it's null