Check errors in magic_buffer wrapper
str ~> bytes
Initial magic object