Correctly strip the separator character when loading plain-text files
Send a fake focus lost event to wxSpinCtrlDouble before reading the value

wxSpinCtrlDouble only updates its value when the spin button is clicked
or it loses focus, and in some cases we want to read the value while it
still has focus.

Closes #1610.