Add support for ending_before
Merge pull request #5 from zf-fr/encode-boolean

Add support for ending_before