Fix command line arguments

Fix command line arguments, handle exception

QA Notes:
Testing Done: Verified with additional arguments -p abc, -p
Documentation Notes:
Bug Number:
Reviewed by:
Approved by:
Mailto:
Added 2 APIs for compatibility with Linux

Added 2 APIs for compatibility with Linux (selecttextbyname, selecttextbyindexandregion)

QA Notes:
Testing Done:
Documentation Notes:
Bug Number:
Reviewed by:
Approved by:
Mailto:
Convert all strings to utf8

Convert all strings to utf8
>>> getobjectlist('*VMwareWorkstation*')
Traceback (most recent call last):   File "<stdin>", line 1, in <module>   File "C:\Program Files (x86)\VMware\CobraWinLDTP\ldtp\client.py", line 66, in __call__     return self.__send(self.__name, args)   File "C:\Python27\lib\xmlrpclib.py", line 1578, in __request     verbose=self.__verbose   File "C:\Program Files (x86)\VMware\CobraWinLDTP\ldtp\client.py", line 187, in  request     raise e xmlrpclib.Fault: <Fault 0: 'Invalid high surrogate character (0xDF9A). A high su rrogate character must have a value from range (0xD800 - 0xDBFF).'>
After the fix, above exception is no longer thrown

QA Notes:
Testing Done: With VMware Workstation
Documentation Notes:
Bug Number: 1054336
Reviewed by:
Approved by:
Mailto: