Neither addslashes, nor stripslashes are functions which should ever be used for anything.
Addslashes does not correctly escape binary data in MySQL in all cases.
Stripslashes actually destroys information therefore should never be used.
mysql_real_escape_string is the right escaping function to use when sending binary (etc) data into MySQL. Data do NOT need to be unescaped when coming back out.
Ensure that magic_quotes_runtime and magic_quotes_gpc are always turned off. They are not magic and will definitely corrupt all of your data.
Mark