sanitize_url() { # We only really need to filter '(', ')' and ',' as these break openURL echo $1 | sed -e's/,/%2c/g' -e's/(/%28/g' -e's/)/%29/g' }