BUG: fix string truncation for astype(str)

closes #4405.