Use the xmodule_modifiers version of replace_static_urls.