Remove newline characters from a ssh key before storing it.
Fixes issue #370: https://github.com/gogits/gogs/issues/370