Fixed comment typo
Added Marshal function to wrap Encoder.