ascii encode
added pemissions support