Fix CRC16 encode : string to bytes

* should use SafeEncoder.encode() instead of String.getBytes()