Checkin problem from maya console

Since sys.stdout is mapped to maya.Output and 'maya.Output' object has no attribute 'encoding', added a try statement that defaults to cp850 encoding