Adding line ending util functions to common.