Fixed encoding problem with format chars