bugfix: accept zero-length input buffer in 'InternalGetChars' for building void strings.