Fix uri_parser read_preference validation