modify regexes and input to use binary encoding, plus spec
Merge pull request #19 from coledot/use_consistent_encodings

modify regexes and input to use binary encoding, plus spec