fixed unicode problem for SDF input