core: removing CR char after encoding

Change-Id: I2c11ec26e25cf39084a889ec475f400a8318e5eb
Signed-off-by: pkliczewski <piotr.kliczewski@gmail.com>