I've little experience with encodings, but if the file contains shiftjis encoding, opening it with the utf8 layer is wrong. First opening it with the utf8 layer, then with shiftjis is pointless, the first layer won't stick.
There's a syntax to open a file with multiple layers at once, but I don't remember the syntax off-hand. However, I don't think that will be correct for your problem. You write We need support for UTF8 and shiftjis. Do you mean your file contains both UTF8 and shiftjis data? I do not think any of the encoding layers is going to help you there - it's not smart enough to decide which bytes should be considered UTF-8, and which bytes shiftjis. You'll have to open it in binary mode, read in chunks all in the same encoding, and then do whatever you need to do.