Fixed file stream loading (ugh, Java...) (fixes #31)