Update message.rb

import patch from mailing list couple years ago. might be useful to some.