Word_wrap does not work with very long words

I encountered a problem with word_wrap: it may produce lines longer than 80 characters if there are very long words. A long word can be for example a long URL pasted in the text.

Is there any function in Rails similar to word_wrap, but that it inserts the newline when a single word is longer than 80 characters?