Clean up tty.open interface for non-standard url/resources.