vary prompt based on file encoding