fixed database character encoding issue