Please find the attached zip, which contains the sample program for replicating the encoding issue with the provided datafiles.
Could you please review the provided sample and  help me in resolving this issue.

After having created "testenvSSL1" database, and after having fixed your local paths, I ran your example, and it didn’t trigger any errors.

Please give me more information on what you believe goes wrong.