Work around buggy Android nio implementation in batteries