Remove use of `Re_str` to add POSIX thread safety.