BUG: fix unicode -> str cast in tslib
This should use format since calling str on a unicode string is a _bad_ idea 
because it may or may not repr correctly.

closes #3875.

another error is created from fixing this issue.
