What to do when a line in a bibliography entry overflows?

The usual solution to fix lines that overflow is to rewrite it. However, that hardly works with bibliography entries that experience the same problem.

So what can I do to fix it? I can't rewrite anything since the information needs to be "as-is". I can't provide a minimal example because if I take the entry that overflows in my document, then the problem fixes itself as the font, font size and margins change.

EDIT

Even though I've accepted an answer, please submit more answers if you have a good approach for addressing this issue. Maybe it can assist someone else who have the same problem and don't want to resort to using "ragged right".

-

try:

\begingroup
\sloppy
%\RaggedRight %% needs package ragged2e
\bibliographystyle{...}
\bibliography{..}
\endgroup

or similiar, if you are using biblatex. It is always a good idea to set the bibliography ragged right if you have a lot of urls, which should always be set with \url{...} (needs the package of the same name)

-
Using RaggedRight fixed the problem nicely, and it doesn't look out of place even though the rest of the document text is justified. –  gablin Feb 14 '12 at 9:27

I've had such problems due to lack of hyphenation: the bibliography item was French, while my language setting was English. I fixed this by adding a \hyphenation entry for the word that wouldn't break. Of course this only works for this specific issue.

-