I'd be tempted to solder on more wire, relocating the plug on the bike itself to under the seat, or some other much drier area. Same with the battery, find a way to have the wire extend from the battery long enough to reach the new plug location.
Then attach the plug type of your choice to connect.
You are going to be doing something like this someday anyway, when you need to actually replace the battery.