E facendo un po' di debugging, ti sei assicurato che quello che salvi nel db e quello che leggi sia la stessa stringa?