Fixed multi-line issue when '\n' is used on Windows systems. Added Buffer Overflow error message