Fixed a text.tr bug in handling backslash in spec