File bytes check

This patch aims to correct #21: