core: removing CR char after encoding

Change-Id: I2c11ec26e25cf39084a889ec475f400a8318e5eb
Signed-off-by: pkliczewski <piotr.kliczewski@gmail.com>
Bug-Url: https://bugzilla.redhat.com/1145636