The LibreOffice API[1] allows you to circumvent this bug and also offers other powerful file access functions.