Fixes: #2368 Only replacing keyword at beginning of new lines now. taken from schema2ldif repo