Man in court charged with trying to murder 'pregnant' woman