Fixed links with a trailing space not being transformed properly.