Added code to deal with unicode for the insert command