sampler now escapes non printable characters