Fixes a crash when exporting RDP profile to .rdp file. Fixes #412.

Also fixes https://bugs.launchpad.net/ubuntu/+source/remmina/+bug/714011