Fix decoding of boolean values.

Change a pattern from strings to binaries. This fixes the boolean encoding/decoding.

Closes #20