decoding the url when reading hash