fix for encoding: assume db encoding is different with rails encoding