Initial version of BER encoding handling