Safely use decodeURIComponent