Fix bug that when complex resource key contains invalid URI characters (e.g. space), batch update fails with URISyntaxException.

RB=211406
BUGS=SI-980
R=adubman,jbetz,slim,si-dev
A=adubman,jbetz,slim