fix some issues with tika not being able to parse