Fixes #2905 Fixing a few problems in fai2ldif