Use inspect instead of to_s for 1.8 compatibility:
http://stackoverflow.com/questions/12678218/difference-in-arrayto-s-in-ruby-1-8-and-ruby-1-9