[#164] Make to_s in paginator threadsafe