Build file encoding can be set

This is a proposal. Tests are not written and not modified.