Expanded for version 2.
Added out-of-range invalidity check.
Updated for version 2:
* Added check mode and replace mode.
* Added invalid byte count message to filter mode.
* Added general failure message.
Including:
* Added out-of-range invalidity check.
Merge branch 'next'

Update to version 2.