Fixed open method to accept empty string