Added some documentation about encoding