Attempt to store shortened gallery URLs with characters in database