Update PropertiesFile with support for encodings.

Signed-off-by: Robert Xu <robxu9@gmail.com>