Fixed matching identity rules when using percent encoded URIs