Force encoding input read via Readline in shell adapter

This fixes Encoding::CompatibilityError with non-ascii caractors when
using the shell adapter.
Merge pull request #58 from fukayatsu/tweak-encoding-in-shell-adapter

Force encoding input read via Readline in shell adapter