Refactor decodeFileOrFail to have decodeGetFileOrFail, fixing #57.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>