dude,
try and use the urlencode function to pass the value.

eg:
$out = '<a href="browse.ph p?path=' . $path . '&image=' . urlencode($imag e) . '">';