decode url before open file