Check against bit string values using multiline regexp

Fix CVE-2014-3482.

Signed-off-by: Neal Harris <neal@squareup.com>