Initialize binary string before concatenating
Concatenating a string to `undefined` yields a string prefixed with "undefined". Update the test to catch this problem if it were reintroduced. Change the scope of buffer-related variables so we don't expose properties not available on SourceBuffer.