Fixing bad database encoding practice.