fix repr of strings/chars with quotes

Closes #8743
auto merge of #9046 : thestinger/rust/repr, r=alexcrichton

Closes #8743