URL opening fixes

Fixed single-quote escaping, tested, should fix #265