Added constants for readability
Added source/output encoding