Renamed `as` method to `encode`
Updated to version 1.1.0