Use decodeURIComponent for better URL decoding