PHP script to replace site url in Wordpress database dump, even with WPML
The only solution is really just to edit the database. At least, I haven't found a better solution.
Usage
wordpress-change-url.php http://old-domain.com https://new-domain.com < database.orig.sql > database.new.sql
Or
wordpress-change-url.php database.orig.sql https://new-domain.com > database.new.sql
Will output all remaining mentions of http://old-domain.com to stderr