Trim whitespace on link URLs (fixes #23).