fix string out-of-bounds assert on rhbz496762-1.pdf

Change-Id: I224e3c9befd1a9ab3ba0cc2676cd6b4ba51214c8