Add spec for transcoding Japanese string
Use transcoding primitive directly for String#encode

This shouldn't always enabled partial transcoding etc, but use the
current settings directly.

Fixes #2388