There is an easy fix ... before moving ...
If you have command line on either server can edit the sql dump there using editors such as nano.
or after moving, use the admin tool for search and replace in Moodle:
use the full URL to search ... ie, http://oldsite/[folder]/ and replace with (as above) http://newsite/[folder]/
'spirit of sharing', Ken