fix coal string decoding; in some cases empty string become false -> substr error