Just few lines of code that detect text file encoding and decode it to your console