Bug 879924 - Don't shorten zero-length strings. r=derf

We were trying to strip the optional null terminator
even when we knew there wasn't one there.