fix host?target url parse on older Emacs
use target string if available
whitespace