Invalid multibyte escape when running s3lib in console


I installed
gem install s3lib
I get this error:
invalid multibyte escape: /[\r\n\t !#-[]-~\x80-\xff]+|(\[\x00-\x7f])/ (SyntaxError)

Any ideas?



My bet is on UTF-8 encoding, which is default since 2.0 or so.


Thank you. Is it possible to fix ? I tried to export ENV variables but it did not help.