Fix up verification for UNIX line endings
Performance improvements: use Uint8Array throughout, only converting to and from strings if needed at the edged.  On Chrome on Linux this gives a 10x speedup.  On Firefox it's only a 20% speed up