replace endftod with fortran function

fix for #517. This fortran function matches existing behavior which doesn't really go along with "fail early, fail often". Some changes may be needed in endf.pyx so that the error catching is unnecessary.
done.