Issue #1: added url encoding of filename