Added check in main for non-unicode string