Use Encoder.decode instead of String.getBytes in Hash

Refs #14.