Remove '\r' from stored node certificates. Fixes #571.