Solution for the issues described in #152

The first commit extends `ObjectWriter` to output user-defined header, footer and separator strings. The second one fixes the output of unnecessary spaces by `JsonEncoder`.