ruby client: throw exception if payload contains invalid unicode characters