decode URL identifiers correctly