add \r\n support

Signed-off-by: Bob Liu <lliubbo@gmail.com>