Fix #29: Add optional errors parameter to decoding methods.