Fixed issue with text input

when entering a 'text string' in the mac app shell, the shell turns the ' into a curly ' - the iOS app doesn't recognize it as a text string and it become really hard to enter text

this change searches the input string for curly ' and replaces them with straight '

it also fixes one other minor bug which should be safe